﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Comparers
{
    public class TabPageComparer : IEqualityComparer<TabPage>
    {
        public bool Equals(TabPage x, TabPage y)
        {
            return x.Text.Equals(y.Text);
        }
        public int GetHashCode(TabPage obj)
        {
            return obj.Text.GetHashCode();
        }
    }
}
